/**
 * express 用于搭建web服务
 * cors 处理跨域问题
 * router 引入接口
 */
const express = require('express')
const cors = require('cors')
const app = express()
app.use(cors())
const router = require('./router')
app.use('/api', router)

app.listen(9080, () => {
  console.log('服务器启动成功了')
})